<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>显示图片</title>
</head>
<body>
<img id="img" src="" alt="Image">
<script>
      var xhr = new XMLHttpRequest();
      xhr.open('GET', '/image', true);
      xhr.responseType = 'json';
      xhr.onload = function(e) {
        if (this.status == 200) {
          var img = document.getElementById('img');
          var arrayBufferView = new Uint8Array(this.response.respData);
          var blob = new Blob([arrayBufferView], { type: 'image/jpg' });
          img.src = URL.createObjectURL(blob);
        }
      };
      xhr.send();
    </script>
</body>
</html>
